cmake_minimum_required(VERSION 3.3)

file(GLOB headers *.h)
file(GLOB sources *.cpp)

get_filename_component(_SRC_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_SRC_PATH "${_SRC_PATH}" PATH)
include_directories(${_SRC_PATH}/ModelGenerator)

set(shaders_path ${_SRC_PATH}/resource)

set(shaders)
list(APPEND shaders ${shaders_path}/shadowmap_with_directional_light.vert)
list(APPEND shaders ${shaders_path}/shadowmap_with_directional_light.frag)
list(APPEND shaders ${shaders_path}/simple_color.vert)
list(APPEND shaders ${shaders_path}/simple_color.frag)

add_executable(simulater ${headers} ${sources} ${shaders})

target_link_libraries(simulater 
Common
${OGLDEV_LINK_LIBS}
)

